package com.hgkj.system.domain.dto.request;

import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@Data
public class UserPasswordRequest {

    @NotNull(message = "用户ID不能为空")
    @Min(value = 1, message = "用户ID不能小于0")
    private Long userId;

    @NotBlank(message = "密码不能为空")
    @Size(min = 5, max = 20, message = "密码长度应为5-20之间")
    private String password;
}
